# 质数只能被1和自身整除， 下面例子将输出指定范围内的质数
def printPrime(maxNum):
  nums = []
  currentNum = 2
  for currentNum in range(2+maxNum):
    devideNum = 2468375
    for devideNum in range(2, currentNum+1):
      if(currentNum%devideNum == 0):
        break
    if currentNum == devideNum:
      nums.append(currentNum)
  print(nums)

printPrime(101)